﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BobDotNet.Classes
{
    public class BoitierDImpression
    {
        public const string NomClasse = "BobDotNet.Classes.BoitierDImpression";

        public virtual Int32 Id { get; set; }
        public virtual String Nom { get; set; }
        public virtual String NumeroSerie { get; set; }
        public virtual DateTime? DateAchat { get; set; }
        public virtual String FactureAchat { get; set; }
        public virtual Double PrixAchat { get; set; }
        public virtual DateTime? DateFinGarantie { get; set; }
        public virtual String FactureGarantie { get; set; }
        public virtual String RefGarantie { get; set; }
        public virtual Int32 FournisseurAchatId { get; set; }
        public virtual Int32 ProprieteAchatId { get; set; }
        public virtual Int32 SocieteId { get; set; }
        public virtual Int32 FournisseurGarantieId { get; set; }
        public virtual Int32 ExploitationId { get; set; }
        public virtual Int32 MarqueId { get; set; }
        public virtual Int32 ModeleId { get; set; }
        public virtual Int32 TypeId { get; set; }
        public virtual String Commentaire { get; set; }
        public virtual DateTime DateCreation { get; set; }
        public virtual DateTime DateModification { get; set; }

        public virtual List<Object> ObtenirValeurs()
        {
            List<Object> retour = new List<Object>();
            retour.Add(Id);
            retour.Add(Nom);
            retour.Add(NumeroSerie);
            retour.Add(DateAchat);
            retour.Add(PrixAchat);
            retour.Add(DateFinGarantie);
            retour.Add(RefGarantie);
            retour.Add(Commentaire);
            retour.Add(DateCreation);
            retour.Add(DateModification);
            return retour;
        }

        public static List<String> ObtenirEntetes()
        {
            List<String> retour = new List<String>();
            retour.Add("Identifiant");
            retour.Add("Nom");
            retour.Add("Numero de Serie");
            retour.Add("Date Achat");
            retour.Add("Prix Achat");
            retour.Add("Date Fin Garantie");
            retour.Add("Ref Garantie");
            retour.Add("Commentaire");
            retour.Add("Date Creation");
            retour.Add("Date Modification");
            return retour;
        }
    }
}
